feat: probe-based dynamic tool filtering by API key scope#69
Merged
Conversation
Owner
Vortiago
commented
Mar 1, 2026
- Rewrites the dynamic tool list feature to use endpoint probing instead of auth.info role/policy inspection — each unique Outline API endpoint is POSTed with a fake UUID and tools whose endpoints return 401 are hidden from the tool list
- Refactors the single dynamic_tools.py module into a dynamic_tools/ package with separate files for filtering logic, tool-endpoint mapping, and write tool names
- Simplifies the readiness probe (/ready) to a keyless HEAD request against the Outline base URL, removing the dependency on a configured API key
- Removes the auth_info() and auth_info_full() client methods, replacing them with probe_endpoint() which handles 401 vs 403 distinction and rate-limit retries
- Removes the eager auth_info() call from get_outline_client(), making client creation synchronous
- Rewrites E2E tests to cover route scopes, namespaced scopes (documents:read, documents:write, documents:create), mixed scopes, invalid keys, and both stdio and streamable-http transports with exact set matching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.